package com.stm.bi.enums;


import com.stm.framework.annotation.EnumValue;

@EnumValue
public enum DimensionNum {

    ONE("1", "一维表"),
    TWO("2", "二维表"),
    THREE("3", "三维表");

    @EnumValue
    private final String value;
    /**
     * 字段类型描述
     */

    private final String desc;

    DimensionNum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static DimensionNum getSalesType(String value) {
        for (DimensionNum ut : DimensionNum.values()) {
            if (ut.getValue().equals(value)) {
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }


}
